/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.kenny.wiki.ejb.entity.facade.remote;

import com.kenny.wiki.ejb.entity.Category;
import com.kenny.wiki.ejb.entity.Title;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author Kenny Lin
 */
@Remote
public interface TitleFacadeRemote {

    void create(Title title);

    void edit(Title title);

    void remove(Title title);

    Title find(Object id);

    List<Title> findByEQL(String eql);

    List<Title> findAll();

    List<Title> findRange(int[] range);

    List<Title> findByUserId(int userId);

    Title findByTitleName(String titleName);

    int count();

    List<Title> findByCategoryOrderByView(int categoryId);

    List<Title> findByCategoryOrderByEdit(int categoryId);

}
